package zom.zenjava.zendeploy.gui.jfx;

import javafx.concurrent.Service;
import javafx.concurrent.Task;
import zom.zenjava.zendeploy.ZenDeployManager;

public class UpgradeToLatestVersionService extends Service<Boolean>
{
    protected Task<Boolean> createTask()
    {
        return new Task<Boolean>()
        {
            protected Boolean call() throws Exception
            {
                ZenDeployManager zenDeployManager = ZenDeployManager.getInstance();
                return zenDeployManager.upgradeToLatestApplicationProfile();
            }
        };
    }
}
